<template>
  <div class="ly-pn">
    <div class="hd" height="auto" :style="{ backgroundColor: panelColor }">
      {{ header }}
      <slot v-if="!header" name="header"></slot>
    </div>
    <div class="mn">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'lyMain',
  props: {
    header: String,
    panelColor: {
      type: String,
      default: '#eff1f6'
    }
  }
}
</script>
<style lang="scss" >
	@import "../assets/styles/variable.scss";
  .ly-pn {
    display: flex;
    flex-direction: column;
    height: 100%;
    > .hd {
			text-align: center;
      color: #303133;
      height:50px;
			line-height: 50px;
      border-bottom: 1px solid $common_border_color;
			border-top:none;
      box-sizing: border-box;
      font-size: 14px;
    }
    > .mn {
      flex: 1;
			background:$main_color;
			
    }
  }
</style>
